package com.cgsrp.cgsrp_baby.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cgsrp.cgsrp_baby.dao.ThingPhotoMapper;
import com.cgsrp.cgsrp_baby.domain.ThingPhoto;
import com.cgsrp.cgsrp_baby.service.ThingPhotoService;
@Service
public class ThingPhotoServiceImpl implements ThingPhotoService{

    @Resource
    private ThingPhotoMapper thingPhotoMapper;

    @Override
    public int deleteByPrimaryKey(Integer thingId,String photopath) {
        return thingPhotoMapper.deleteByPrimaryKey(thingId,photopath);
    }

    @Override
    public int insert(ThingPhoto record) {
        return thingPhotoMapper.insert(record);
    }

    @Override
    public int insertSelective(ThingPhoto record) {
        return thingPhotoMapper.insertSelective(record);
    }

}
